/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * administracionGUI.java
 *
 * Created on 05/10/2011, 20:12:29
 */

package Administracion;

import java.awt.event.ActionListener;

/**
 *
 * @author nan
 */
public class administracionGUI extends javax.swing.JFrame {

    /** Creates new form administracionGUI */
    public administracionGUI() {
        initComponents();
        this.jTableArticuloMin.setEnabled(false);
    }

    public void setActionListeners(ActionListener lis){
        this.getjButtonArticulos().addActionListener(lis);
        this.getjButtonConsultaPrecio().addActionListener(lis);
        this.getjButtonConsultaVtaDiaria().addActionListener(lis);
        this.getjButtonDevolucion().addActionListener(lis);
        this.getjButtonPersonas().addActionListener(lis);
        this.getjButtonVentas().addActionListener(lis);
        this.getjButtonConsultaVentas().addActionListener(lis);
        this.getjButtonSalir().addActionListener(lis);
        this.getjButtonPorsentaje().addActionListener(lis);
        this.getjButtonDevListar().addActionListener(lis);
        this.getjButtonGasto().addActionListener(lis);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jButtonSalir = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableArticuloMin = new javax.swing.JTable();
        jPanel1 = new javax.swing.JPanel();
        jButtonVentas = new javax.swing.JButton();
        jButtonConsultaPrecio = new javax.swing.JButton();
        jButtonConsultaVtaDiaria = new javax.swing.JButton();
        jButtonConsultaVentas = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jButtonDevolucion = new javax.swing.JButton();
        jButtonDevListar = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jButtonArticulos = new javax.swing.JButton();
        jButtonPorsentaje = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jButtonGasto = new javax.swing.JButton();
        jButtonPersonas = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Administracion");

        jLabel1.setFont(new java.awt.Font("Ubuntu", 0, 24));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Productos con STOCK MINIMO:");
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        jButtonSalir.setFont(new java.awt.Font("Ubuntu", 0, 24));
        jButtonSalir.setText("Salir");

        jTableArticuloMin.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Codigo", "Nombre", "Stock", "Stock Maximo"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTableArticuloMin);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Ventas"));

        jButtonVentas.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonVentas.setText("Hacer Venta");
        jButtonVentas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVentasActionPerformed(evt);
            }
        });

        jButtonConsultaPrecio.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonConsultaPrecio.setText("Consulta Precio");
        jButtonConsultaPrecio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaPrecioActionPerformed(evt);
            }
        });

        jButtonConsultaVtaDiaria.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonConsultaVtaDiaria.setText("Consulta Venta diaria");

        jButtonConsultaVentas.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonConsultaVentas.setText("Consulta de Ventas");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonConsultaVentas, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
                    .addComponent(jButtonConsultaVtaDiaria, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
                    .addComponent(jButtonConsultaPrecio, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
                    .addComponent(jButtonVentas, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jButtonVentas)
                .addGap(18, 18, 18)
                .addComponent(jButtonConsultaPrecio)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                .addComponent(jButtonConsultaVtaDiaria)
                .addGap(18, 18, 18)
                .addComponent(jButtonConsultaVentas)
                .addContainerGap())
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Devoluciones"));

        jButtonDevolucion.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonDevolucion.setText("Devolucion");

        jButtonDevListar.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N
        jButtonDevListar.setText("Lista Devolucion");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonDevolucion, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
                    .addComponent(jButtonDevListar, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jButtonDevolucion)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonDevListar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Articulos"));

        jButtonArticulos.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonArticulos.setText("Articulos");

        jButtonPorsentaje.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonPorsentaje.setText("Porcentaje");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonArticulos, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
                    .addComponent(jButtonPorsentaje, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jButtonArticulos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonPorsentaje)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Otros"));

        jButtonGasto.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonGasto.setText("Gastos");

        jButtonPersonas.setFont(new java.awt.Font("Ubuntu", 1, 18));
        jButtonPersonas.setText("Personas");
        jButtonPersonas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonPersonasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonGasto, javax.swing.GroupLayout.DEFAULT_SIZE, 589, Short.MAX_VALUE)
                    .addComponent(jButtonPersonas, javax.swing.GroupLayout.DEFAULT_SIZE, 589, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jButtonGasto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                .addComponent(jButtonPersonas)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 592, Short.MAX_VALUE)
                    .addComponent(jButtonSalir, javax.swing.GroupLayout.DEFAULT_SIZE, 592, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 349, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonSalir)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonConsultaPrecioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConsultaPrecioActionPerformed
        
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonConsultaPrecioActionPerformed

    private void jButtonVentasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonVentasActionPerformed

        // TODO add your handling code here:
}//GEN-LAST:event_jButtonVentasActionPerformed

    private void jButtonPersonasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPersonasActionPerformed
        //ES POR ESTO ESTOS METODOS NO DEBEN ESTAR
}//GEN-LAST:event_jButtonPersonasActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new administracionGUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonArticulos;
    private javax.swing.JButton jButtonConsultaPrecio;
    private javax.swing.JButton jButtonConsultaVentas;
    private javax.swing.JButton jButtonConsultaVtaDiaria;
    private javax.swing.JButton jButtonDevListar;
    private javax.swing.JButton jButtonDevolucion;
    private javax.swing.JButton jButtonGasto;
    private javax.swing.JButton jButtonPersonas;
    private javax.swing.JButton jButtonPorsentaje;
    private javax.swing.JButton jButtonSalir;
    private javax.swing.JButton jButtonVentas;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTableArticuloMin;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the jButtonArticulos
     */
    public javax.swing.JButton getjButtonArticulos() {
        return jButtonArticulos;
    }

    /**
     * @return the jButtonConsultaPrecio
     */
    public javax.swing.JButton getjButtonConsultaPrecio() {
        return jButtonConsultaPrecio;
    }

    /**
     * @return the jButtonConsultaVentas
     */
    public javax.swing.JButton getjButtonConsultaVentas() {
        return jButtonConsultaVentas;
    }

    /**
     * @return the jButtonConsultaVtaDiaria
     */
    public javax.swing.JButton getjButtonConsultaVtaDiaria() {
        return jButtonConsultaVtaDiaria;
    }

    /**
     * @return the jButtonDevolucion
     */
    public javax.swing.JButton getjButtonDevolucion() {
        return jButtonDevolucion;
    }

    /**
     * @return the jButtonPersonas
     */
    public javax.swing.JButton getjButtonPersonas() {
        return jButtonPersonas;
    }

    /**
     * @return the jButtonSalir
     */
    public javax.swing.JButton getjButtonSalir() {
        return jButtonSalir;
    }

    /**
     * @return the jButtonVentas
     */
    public javax.swing.JButton getjButtonVentas() {
        return jButtonVentas;
    }

    /**
     * @return the jTableArticuloMin
     */
    public javax.swing.JTable getjTableArticuloMin() {
        return jTableArticuloMin;
    }

    /**
     * @return the jButtonPorsentaje
     */
    public javax.swing.JButton getjButtonPorsentaje() {
        return jButtonPorsentaje;
    }

    /**
     * @return the jButtonUsarVenta
     */
    public javax.swing.JButton getjButtonDevListar() {
        return jButtonDevListar;
    }

    /**
     * @return the jButtonGasto
     */
    public javax.swing.JButton getjButtonGasto() {
        return jButtonGasto;
    }

    

}
